import logging

from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response

# Create your views here.

logger = logging.getLogger('erp')


class Hello(APIView):
    def get(self, request):
        logger.debug("debug基本的日志")
        logger.info('info基本的日志')
        logger.error('error级别的日志')
        return Response({"msg": "hello world"})
